-- 攻击
-- 强制提示请在这里添加
local attack = {
	{
		prefabs = {"ghost",},
		rotary = {{"blue", 1.5}},
	}, 
	{
		prefabs = {
					-- 以下数据未验证
					"lightninggoat", 
					"krampus",
					"crawlingnightmare", 
					"nightmarebeak", 
					"deer_blue", 
					"deer_red", 
					"birchnutdrake", 
					"moonpig", "pigguard", "mermguard","pigman", "bunnyman", "merm",
					"leif","leif_sparse",
					"koalefant_summer", "koalefant_winter", "grassgator", "beefalo", 
					"fruitdragon", "gnarwail","spat",
					-- 以下为呼吸验证, 值得信赖
					"frog", "knight","knight_nightmare",
					"powder_monkey",
					"prime_mate",
					"monkey",
					"houndcorpse", "hound", "icehound", "firehound", "mutatedhound", "clayhound", "hedgehound",
					"spider_healer", "spider_moon", "spider_dropper", "spider", "spider_warrior", "spider_hider", "spider_spitter",
					-- 补充
					"terrorbeak","crawlinghorror",
				},
		rotary = {{"blue", 3}},
	},{
		prefabs = {"koalefant_summer", "koalefant_winter",},
		rotary = {{"blue", 5}},
	}, {
		prefabs = {"rocky","eyeofterror_mini"},
		rotary = {{"blue", 4}},
	}, {
		prefabs = {"shark"},
		rotary = {{"green", 4}},
	}, {
		prefabs = {"tentacle","flup"},
		rotary = {{"green", 4}},
		always = true,
	},
	-- BOSS
	{
		prefabs = {"deerclops"},
		rotary = {{"blue", 12}},
	}, 
	{
		prefabs = {"warglet"},
		rotary = {{"blue", 3}},
	}, 
	{
		prefabs = {"klaus"},
		-- chomp
		rotary = {{"blue", 4.5},{"blue", 7},
		-- 变大后,统计一起吧
		-- {"blue", 9}
		},
	},
	{
		prefabs = {"minotaur"},
		rotary = {{"blue", 4.1-0.5},{"blue", 4.1+0.5}},
	},
	{
		prefabs = {"stalker","stalker_forest","stalker_atrium"},
		rotary = {{"blue", 2.9},{"blue", 10}},
	},
	{
		prefabs = {"shadow_knight"},
		rotary = {{"blue", 2.3},{"blue", 4.5}},
	},
	{
		prefabs = {"shadow_rook"},
		rotary = {{"blue", 8}},
	},
	{
		prefabs = {"alterguardian_phase2",},
		rotary = {{"blue", 4.5}, {"blue", 18}},
	}, 
	{
		prefabs = {"alterguardian_phase3",},
		rotary = {{"blue", 14},},
	}, 
	-- 暗影主教:emmmm, 分三个阶段, 依次为4,6,8 需要额外写函数, 暂且不表 
	-- 帝王蟹:emmmm, 需要额外写函数, 暂且不表 
	{
		prefabs = {"dirtpile"},
		rotary = {{"THISTLE", 2}},
		always = true,
	},
}

-- 仇恨
local target = {
	{
		prefabs = {"spore_moon"},
		rotary = {{"blue", 3}},
	},{
		prefabs = {"lightninggoat"},
		rotary = {{"blue", 8}},
	},
	{
		prefabs = {"bishop_nightmare", "rook_nightmare"},
		rotary = {{"blue", 12}},
	},{
		prefabs = {"knight_nightmare", "slurtle",},
		rotary = {{"blue", 10}},
	},{
		prefabs = {"wasphive"},
		rotary = {{"brown", 10}},
		always = true,
	},
	-- BOSS
	{
		prefabs = {"klaus", "dragonfly", "shadow_rook", "shadow_knight", "shadow_bishop"},
		rotary = {{"blue", 15}},
	},
	{
		prefabs = {"malbatross"},
		rotary = {{"green", 3}},
	},
	{
		prefabs = {"claywarg", "gingerbreadwarg"},
		rotary = {{"green", 4}},
	},
	{
		prefabs = {"archive_centipede"},
		rotary = {{"blue", 5}},
	},
	{
		prefabs = {"mushroombomb", "mushroombomb_dark"},
		rotary = {{"red", 3.5}},
		quick = true,
	},
	{
		prefabs = {"alterguardian_phase3trap",},
		rotary = {{"red", 3.5},},
		always = true,
	}, 
	{
		prefabs = {"eyeofterror", "twinofterror1","twinofterror2"},
		rotary = {{"blue", 3}},
	}, 
	-- 花里胡哨
	-- {
	-- 	prefabs = {"deer_blue",	"deer_red",},
	-- 	rotary = {{"blue", 12}},
	-- },  
	{
		prefabs = {"alterguardian_phase1",},
		rotary = {{"blue", 4.25}},
	}, 
}

-- 海星清远古
local starfish = {
	"rook_nightmare", "knight_nightmare", "bishop_nightmare", "minotaur",
	-- 放眼球炮
	"antlion",
	-- 插木牌
	"klaus_sack",
}

-- 追踪
local track = {
	klaus_sack = "red",
	malbatross = "red",
	beequeenhivegrown = "yellow",
	antlion = "red",
	greengem = "green",
	yellowgem = "yellow",
	livingtree = "BROWN",
	livingtree_halloween = "brown",

	-- 岛屿冒险
	ia_messagebottle = "red",
	coral_brain_rock = "red",
	whale_bubbles = "red",
	dubloon = "YELLOW",
	
	-- musha
	musha_treasure2 = "MEDIUMPURPLE",
}

-- 部分建筑
local click = {
	firesuppressor = {
		"blue",
		GLOBAL.TUNING.FIRE_DETECTOR_RANGE,
	},
	winona_catapult =  {
		"blue",
		GLOBAL.TUNING.WINONA_CATAPULT_MAX_RANGE,
	},
	lightning_rod = {
		"yellow",
		40,
	},
	oceantree = {
		"green",
		GLOBAL.TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	oceantreenut = {
		"green",
		GLOBAL.TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	oceantree_pillar = {
		"green",
		GLOBAL.TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	winch = {
		"green",
		GLOBAL.TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	watertree_pillar = {
		"green",
		GLOBAL.TUNING.SHADE_CANOPY_RANGE,
	}, 
	eyeturret = {
		"blue",
		GLOBAL.TUNING.EYETURRET_RANGE,
	}
}

-- 部分物品
local hover = {
	panflute = GLOBAL.TUNING.PANFLUTE_SLEEPRANGE,
	eyeturret = GLOBAL.TUNING.EYETURRET_RANGE,
	wortox_soul = GLOBAL.TUNING.WORTOX_SOULHEAL_RANGE,
	-- 书
	book_tentacles = 8, 		-- 3,8
	book_birds = 10,
	book_brimstone = 15,		-- 3,15
	book_sleep = 30,			-- 这个范围离谱
	book_gardening = 30,
	book_horticulture = 30,
	book_horticulture_upgraded = 30,
	book_silviculture = 30,
	book_fish = 10,				-- 事实上有偏移
	book_fire = GLOBAL.TUNING.BOOK_FIRE_RADIUS,
	book_web = GLOBAL.TUNING.BOOK_WEB_GROUND_RADIUS,
	book_temperature = GLOBAL.TUNING.BOOK_TEMPERATURE_RADIUS,
	book_light = 3,
	book_light_upgraded = 3,
	book_rain = GLOBAL.TILE_SCALE,
	book_research_station = GLOBAL.TUNING.BOOK_RESEARCH_STATION_RADIUS,
	-- 火药
	gunpowder = GLOBAL.TUNING.GUNPOWDER_RANGE,
}

-- 放置
local placer = {
	lightning_rod_placer = {
		"yellow",
		40,
	},
	eyeturret_item_placer = {
		"blue",
		GLOBAL.TUNING.EYETURRET_RANGE,
	}
}

GLOBAL.rangeTable = {
    attack_range = attack,
    target_range = target,
	starfish_range = starfish,
	track_range = track,
	click_range = click,
	hover_range = hover,
	placer_range = placer,
}